package cn.yj.cgs.dba.entity;


import cn.yj.cgs.dba.BaseEntity;
import cn.yj.common.Enums;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author 永健
 * @since 2021-04-19 16:12:11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "tb_integral_water")
public class IntegralWater extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * <br>
     * 用户编码
     */


    private String userCode;


    /**
     * <br>
     */

    private BigDecimal integral;


    /**
     * <br>
     * in:进账,out:出账
     */
    private Enums.IntegralWater.TYPE type;


    /**
     * <br>
     * 流水单号
     */


    private String orderNo;


    /**
     * <br>
     */
    private BigDecimal payAmount;


    /**
     * <br>
     */
    private BigDecimal totalFee;


    /**
     * <br>
     * 状态:doing/success/fail
     */
    private Enums.IntegralWater.STATUS status;

    /** 参考：cn.yj.common.IntegralWater.SOURECE */
    private Enums.IntegralWater.SOURCE source;

    /**
     * 当source为 SHARE 的时候有值 邀请码
     */
    private String inviteCode;


}

